package com.xzit.erpmodel.users.controller;

import com.xzit.erpmodel.util.JDBCTools;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.sql.Connection;

/**
 * @author haoranlu
 * @project IntelliJ IDEA
 */
public class UsersServlet extends HttpServlet {
    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp){
        try {
            Connection conn = JDBCTools.getConnection();
            System.out.println("连接成功"+conn );
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
